<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<h1>JS 字串</h1>
	<hr>
	<script>
		var a = '12345';
		var b = '上山打老虎';
		var c = a+b;
		//ES5
		var h = '呵呵达';
		var str1 = 'hello,'+h+' \n I \'xuan\' you';
        var str2 = "hello,"+h+" \n I 'xuan' you";
        console.log(str1);
        console.log(str2);
        //ES6 `` 反引号
        var msg=` <img src="./1.jpg" width="200">
            <p>老王说:"这张图片真'好看'啊"</p>
            <p>老张说:"恩...."</p>`;
            document.write(msg);
            var x =12;
            var y =31234;
            console.log(`${x}+${y}=${x+y}`);
	</script>
</body>
</html>